const mongoose = require("mongoose")
const Schema = mongoose.Schema
const StudentType = {
    studentname: String,
    class: {type:Schema.Types.ObjectId,ref:'class'},
    score:Object,
    password:String,
    avatarUrl:String,
    gender:Number,
    introduction:String
}
const StudentModel = mongoose.model("student", new Schema(StudentType,{minimize:false/*防止空对象存不进去*/}))
module.exports = StudentModel